<?php

namespace App\Http\Middleware;
use Closure;
use App\Http\Repository\ApiLogRepository;
/**
 * 日志访问记录
 * Class ApiLog
 * @package App\Http\Middleware
 */
class ApiLog
{
    public function handle($request, Closure $next)
    {
        $response = $next($request);
        ApiLogRepository::Log($request,$response);
        return $response;
    }
}
